package top.zuli.package01.class04;

public class ArrayDemo10 {
    public static void main(String[] args) {
        int[][] arr1 = new int[4][3];
        for (int y = 0; y < arr1.length; y++) {
            for (int x = 0; x < arr1[y].length; x++) {
                arr1[y][x] = 1;
            }
        }
        for (int y = 0; y < arr1.length; y++) {
            for (int x = 0; x < arr1[y].length; x++) {
                System.out.print(arr1[y][x]+"\t");
            }
            System.out.println();
        }
        String[][] arr2 = new String[4][];
        for (int y = 0; y < arr2.length; y++) {
            arr2[y] = new String[y+1];
            for (int x = 0; x < arr2[y].length; x++) {
                arr2[y][x] = "*";
            }
        }
        for (int y = 0; y < arr2.length; y++) {
            for (int x = 0; x < arr2[y].length; x++) {
                System.out.print(arr2[y][x]);
            }
            System.out.println();
        }
    }
}
